package com.alex.designPattern.observer.jdk;

import java.util.Observable;
import java.util.Observer;

public class Worker implements Observer {
	
	private String name;

	public void update(Observable o, Object arg) {
		System.out.println(this.name.concat(" is updated..."));
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
